package net.cyan.commons.transaction;

/**
 * 
 * @author camel
 * @date 2008-11-21
 */
public abstract class AbstractTransaction implements Transaction
{
    protected TransactionMode mode;

    protected TransactionLevel level;

    public AbstractTransaction(TransactionMode mode, TransactionLevel level)
    {
        this.mode = mode;
        this.level = level;
    }

    public TransactionMode getMode()
    {
        return mode;
    }

    public TransactionLevel getLevel()
    {
        return level;
    }
}
